package cn.zl.web.dto.user;

import cn.yunbamboos.rest.service.dto.Data;
import cn.yunbamboos.rest.service.dto.out.GenericOutDTO;
import cn.zl.model.User;

public class QueryCurLoginUserOutDTO extends GenericOutDTO {

    private final User user;

    public QueryCurLoginUserOutDTO(User user) {
        this.user = user;
    }

    @Override
    public void encode(Data data) {
        super.encode(data);
        data.setModel("user", user);
    }
}
